﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    /// <summary>
    /// 图书信息实体类
    /// </summary>
    public class BookInfo
    {
        public string BookID { get; set; }
        public string ISBN { get; set; }
        public string BookName { get; set; }
        public string Author { get; set; }
        public DateTime PublishDate { get; set; }
        public string BookVersion { get; set; }
        public int WordCount { get; set; }
        public int PageCount { get; set; }
        public string Publisher { get; set; }
        public decimal Prices { get; set; }
        public virtual BookClass BookClass { get; set; }
        public BookInfo() { }
        public BookInfo(string bookId, string isbn, string bookName, string author, DateTime publishDate, string bookVersion, int wordCount, int pageCount, string publisher, decimal prices, string bookClassID)
        {
            this.BookID = bookId;
            this.ISBN = isbn;
            this.BookName = bookName;
            this.Author = author;
            this.PublishDate = publishDate;
            this.BookVersion = bookVersion;
            this.WordCount = wordCount;
            this.PageCount = pageCount;
            this.Publisher = publisher;
            this.Prices = prices;
            this.BookClass.BookClassID = bookClassID;
        }
    }
}
